import request from '@/utils/request'

/**
 * 查询未读消息
 * @param params
 * @returns {*}
 */
export function queryAllUnRead(params) {
  return request({
    url: 'rest/api/v1/notice/read/getUnRead/pager',
    method: 'get',
    params
  })
}

/**
 * 标记已阅
 * @param params
 * @returns {*}
 */
export function userRead(params) {
  return request({
    url: 'rest/api/v1/notice/read/saveNoticeRead',
    method: 'get',
    params
  })
}
